package common.converter;

/**
 * @author yuanqinglong
 * @since 2021/3/19 16:41
 */

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ ElementType.FIELD,ElementType.METHOD,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = CostValueValidator.class)
public @interface CostValue {


    /**
     * 错误提示
     * @return 默认提示
     */
    String message() default "是否计费必须为是或否！";

    /**
     * 指定值
     * @return 默认值
     */
    String[] values() default {};

    Class<?>[] groups() default { };
    Class<? extends Payload>[] payload() default { };

}
